{% load comments %}
{% load i18n %}
{% load multimedia_extras %}

<h2><a href="{% url blog-detail post.id %}">{{ post.title }}</a></h2>

<p class="subtitle">{{ post.date|date:"l d F Y" }}, <i>{{ post.category }}</i></p>

{% if post.image %}
<img src="{% thumbnail post.image 200 160 %}" class="post-image"/>
{% endif %}

{% autoescape off %}
{{ post.text|truncatewords_html:100 }}
{% endautoescape %}

<p class="read_more"><a href="{% url blog-detail post.id %}">lire la suite</a></p>

{% comment %}
{% get_comment_count for post as comment_count %}
<p style="text-align:right">
{% ifnotequal comment_count 0 %}
<a href="{% url blog-detail post.id %}#comments"> {{ comment_count }} {% trans 'commentaire' %}{{ comment_count|pluralize }}</a> |
{% endifnotequal %}
<a href="{% url blog-detail post.id %}">{% trans 'commenter' %}</a></p>
{% endcomment %}